<?php
namespace app\common\enum;

class ProductImageType extends Base
{
	protected static $options = [ '0' => '主图', '1' => '图片', '2' => '详情图' ];
	protected static $codeOptions = [
		'main' => 0,
		'pic'  => 1,
		'info' => 2
	];

	public static function code2key($code) {
		return static::$codeOptions[$code];
	}
}
